{foreach from=$WEB_APP.categories item=category key=category_name}
	{if count($category) > 0}
		<h3>{$text[$category_name]}</h3>
		<table width="100%">

		{foreach from=$category item=module name=modules_loop}
			{if $smarty.foreach.modules_loop.iteration is not even}
				<tr>
			{/if}
			<td width="50%" height="60">
				{if $module.image neq ''}<a href="{$WEB_APP.cfg_url}?module={$module.module}" style="background-color: transparent;"><img src="{$WEB_APP.images_dir}{$module.image|escape}" align=absmiddle border=0></a>&nbsp;{/if}<a href="{$WEB_APP.cfg_url}?module={$module.module}">{if isset($text[$module.module_name]) eq TRUE}{$text[$module.module_name]}{else}{$module.module_name}{/if}</a>
			</td>
			{if $smarty.foreach.modules_loop.iteration is even}
				</tr>
			{/if}
		{/foreach}
		</table>
	{/if}
{/foreach}
